package hutoolandguava.eventbus;

import com.google.common.eventbus.EventBus;

/**
 * @author ZH
 */
public class EventBusTest {
    public static void main(String[] args) {
        EventBus eventBus = new EventBus("Test");
        eventBus.register(new OrderEventListener());
        OrderMessage orderMessage = new OrderMessage();
        orderMessage.setOrderContent("hello");
        eventBus.post(orderMessage);
    }
}
